"""分类模型"""
from sqlalchemy import Column, String, Integer
from .base import BaseModel


class Category(BaseModel):
    """分类表模型"""
    __tablename__ = "categories"
    
    name = Column(String(50), nullable=False)
    description = Column(String(255), nullable=True)
    icon = Column(String(50), nullable=True)
    sort_order = Column(Integer, default=0)
    status = Column(Integer, default=1)
